<?php echo $this->Session->flash(); ?>

<div id="loading" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>
<h1>PREDIOS PROYECTO <?php echo$cod; ?></h1>
<table  id="tabla" class="tabla" >
    <thead>
        <tr>
            <th>Código</th>
            <th>Nombre</th>
            <th>Vereda</th>
            <th>Area de Negociación</th>
            <th>Area de Títulos</th>
            <th colspan="4"></th>

        </tr>
    </thead>
    <tbody>
        <?php foreach ($properties as $prop): ?>
            <tr>
                <td><?php echo $prop['Property']['codigo'] ?></td>
                <td><?php echo $prop['Property']['nombre'] ?></td>
                <td><?php echo $prop['Property']['vereda'] ?></td>
                <td><?php echo $prop['Property']['area_negociacion'] ?></td>
                <td><?php echo $prop['Property']['area_titulo'] ?></td>
                <td><?php echo $ajax->link('Editar', array('Controller' => 'Properties', 'action' => 'edit', $prop['Property']['id']), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading')); ?></td>
                <td><?php echo $ajax->link('Filtro Requisitos', array('controller' => 'PropertyRequirements', 'action' => 'index', $prop['Property']['id']), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading')); ?></td>
                <td><?php echo $ajax->link('Propietarios', array('controller' => 'owners', 'action' => 'index', $prop['Property']['id']), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading')); ?></td>
                <td><?php echo $ajax->link('Eliminar', array('controller' => 'Properties', 'action' => 'delete', $prop['Property']['id']), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading'), '¿Se eliminara el estudio de titulos y la toda la informacion asociada?'); ?></td>


            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<br>


<br>
<legend><?php echo $ajax->link("Agregar Predio", array('controller' => 'Properties', "action" => "add"), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading')) ?></legend>





